<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router){
    $router->get('/', 'UserController@index');

    $router->get('user/clear-record', 'UserController@clearRecord');
    $router->get('user/clear-user', 'UserController@clearUser');

    $router->resource('daily-books', DailyBookController::class);

    $router->resource('user', UserController::class);

    $router->resource('book', BookController::class);
    $router->resource('chapters', BookChapterController::class);

    $router->resource('classifies', ClassifyController::class);
    $router->resource('classifybooks', ClassifyBookController::class);

    $router->resource('reports', ReportController::class);
    $router->resource('roasts', RoastController::class);

    $router->resource('orders', OrderController::class);

    $router->resource('member-prices', MemberPriceController::class);

    $router->resource('daily-reports', DailyReportController::class);
});
